<?php
/** 
* 网站配置文件
*
* The require() function is identical to include(), except that it handles errors differently.
* If an error occurs, the include() function generates a warning, but the script will continue execution.
* The require() generates a fatal error, and the script will stop.
*
* The require_once() statement is identical to require() except PHP will check if the file has already been included, 
* and if so, not include (require) it again.
*
* @author xinzhengs@gmail.com 
* @version 0.1, 12/23/2012
*/
function execSQL($sql) {
	$DATABASE_ADDRESS = "localhost"; // Address of MySQL server.
	$DATABASE_USERNAME = "root"; // Username to access server.
	$DATABASE_PASSWORD = "pass123"; // Password access server.
	$DATABASE_NAME = "test";
	$link = mysql_connect ( $DATABASE_ADDRESS, $DATABASE_USERNAME, $DATABASE_PASSWORD ) or die ( "Could not connect: " . mysql_error () );
	mysql_select_db ( $DATABASE_NAME, $link );
	mysql_query ( "set names 'utf8'" );
	mysql_select_db ( $DATABASE_NAME, $link );
	return mysql_query ( $sql );
}
?>